package com.yanqu.road.entity.minewar;

import com.yanqu.road.entity.DataObject;

import java.math.BigInteger;
import java.util.Objects;

public class UserMineData extends DataObject {

    private long userId;

    private long totalRobTimes;                          //累计抢占成功次数

    private long totalBeRobTimes;                        //累计被抢占次数

    private BigInteger maxTeamReward1 = BigInteger.ZERO;      //单队伍最大收益1

    private BigInteger maxTeamReward2 = BigInteger.ZERO;      //单队伍最大收益2

    private BigInteger maxTeamReward3 = BigInteger.ZERO;      //单队伍最大收益3

    private BigInteger totalReward1 = BigInteger.ZERO;      //累计收益1

    private BigInteger totalReward2 = BigInteger.ZERO;      //累计收益2

    private BigInteger totalReward3 = BigInteger.ZERO;      //累计收益3

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getTotalRobTimes() {
        return totalRobTimes;
    }

    public void setTotalRobTimes(long totalRobTimes) {
        if(this.totalRobTimes != totalRobTimes) {
            this.totalRobTimes = totalRobTimes;
            setUpdateOption();
        }
    }

    public long getTotalBeRobTimes() {
        return totalBeRobTimes;
    }

    public void setTotalBeRobTimes(long totalBeRobTimes) {
        if(this.totalBeRobTimes != totalBeRobTimes) {
            this.totalBeRobTimes = totalBeRobTimes;
            setUpdateOption();
        }
    }

    public BigInteger getMaxTeamReward1() {
        return maxTeamReward1;
    }

    public void setMaxTeamReward1(BigInteger maxTeamReward1) {
        if(!Objects.equals(this.maxTeamReward1, maxTeamReward1)) {
            this.maxTeamReward1 = maxTeamReward1;
            setUpdateOption();
        }
    }

    public BigInteger getMaxTeamReward2() {
        return maxTeamReward2;
    }

    public void setMaxTeamReward2(BigInteger maxTeamReward2) {
        if(!Objects.equals(this.maxTeamReward2, maxTeamReward2)) {
            this.maxTeamReward2 = maxTeamReward2;
            setUpdateOption();
        }
    }

    public BigInteger getMaxTeamReward3() {
        return maxTeamReward3;
    }

    public void setMaxTeamReward3(BigInteger maxTeamReward3) {
        if(!Objects.equals(this.maxTeamReward3, maxTeamReward3)) {
            this.maxTeamReward3 = maxTeamReward3;
            setUpdateOption();
        }
    }

    public BigInteger getTotalReward1() {
        return totalReward1;
    }

    public void setTotalReward1(BigInteger totalReward1) {
        if(!Objects.equals(this.totalReward1, totalReward1)) {
            this.totalReward1 = totalReward1;
            setUpdateOption();
        }
    }

    public BigInteger getTotalReward2() {
        return totalReward2;
    }

    public void setTotalReward2(BigInteger totalReward2) {
        if(!Objects.equals(this.totalReward2, totalReward2)) {
            this.totalReward2 = totalReward2;
            setUpdateOption();
        }
    }

    public BigInteger getTotalReward3() {
        return totalReward3;
    }

    public void setTotalReward3(BigInteger totalReward3) {
        if(!Objects.equals(this.totalReward3, totalReward3)) {
            this.totalReward3 = totalReward3;
            setUpdateOption();
        }
    }
}
